#include "Eater.h"

namespace Implement
{
	using namespace Core::GameLogic;
	using namespace Graphics;

	Eater::Eater(Position start,int BaseIndex):
				Element(start),
				baseIndex(BaseIndex)
	{
	}
	const Position& Eater::GetPos()
	{
		m_Pos = GetPosition();
		return m_Pos;
	}	
	int Eater::GetID()
	{
		switch (GetDir())
		{
		case DOWN:
			return 0+baseIndex;
		case LEFT:
			return 1+baseIndex;
		case RIGHT:
			return 2+baseIndex;
		case UP:
			return 3+baseIndex;
		default:
			return 0+baseIndex;
		}

	}
	float Eater::GetSpeed(void)
	{
		return 1.0f;
	}
}
